
var WatchPage = Objs("view.components.WatchPage",
	UiComponent,
{    iagree:"",
     save:"",
     removerem:"",
	initialize: function()
	{ 
		WatchPage.$super.initialize.call( this );
		this.initializeChildren();
		this.bindListeners();
	},
	
    initializeChildren: function()
    {
		$('#hidecont').hide();
		this.iagree = jQuery("#checkbox-1");
		this.save = jQuery("#remsave");
		this.removerem = jQuery("#removerem");
		
    },

	bindListeners: function()
	{
		var namespace = ".WatchPage";
		this.iagree.on( "change"+namespace, jQuery.proxy( this, "chane_clickHandler" ) );
		this.save.on( "click"+namespace, jQuery.proxy( this, "save_clickHandler" ) );
		this.removerem.on( "click"+namespace, jQuery.proxy( this, "remove_clickHandler" ) );
	},
	chane_clickHandler:function()
	{ //alert(s)
		document.getElementById("datereminder").value=" ";
		document.getElementById("remnote").value="";
		
		this.dispatchEvent( WatchPage.WATCHLIST );
	
	},
	save_clickHandler:function()
	{
	
		this.dispatchEvent( WatchPage.SAVEWATCHLIST );
	},
	remove_clickHandler:function()
	{
		this.dispatchEvent( WatchPage.REMOVEWATCHLIST );
	}
});
WatchPage.WATCHLIST="watch";
WatchPage.SAVEWATCHLIST="save";
WatchPage.REMOVEWATCHLIST="remove";